<?php
namespace Admin\Controller;
class IndexController extends CommonController{
	public function index(){
		
		if(session('user_name')){
			//echo "hello";die();
			//dump(session('user_name'));die;
			$this->display();
		}
	}
	public function  loginOut(){
		session(null);
		$this->success("",U('Public/login'),1);
	}
	public function showDepart(){

		$departModel= D('department');
		dump($departModel);die();
	}
}
?>